package com.javacoo.limit.starter;

import java.util.Optional;

import com.javacoo.limit.client.api.RateLimiter;

/**
 * 限流接口对象持有者
 * <p>说明:</p>
 * <li></li>
 * @author duanyong
 * @date 2021/5/7 22:27
 */
public class RateLimiterHolder {
    /** 限流对象*/
    static RateLimiter rateLimiter;

    public static Optional<RateLimiter> getRateLimiter() {
        return Optional.ofNullable(rateLimiter);
    }
}
